from django.contrib import admin
from django.urls import path,include
from . import  views

urlpatterns = [
    path('books/',views.BookAPIView.as_view() ),
    path('books/all',views.BookListView.as_view() ),
    path('books/detail/<int:book_id>',views.BookDetailView.as_view() ),
    path('books/BookListGebericAPIView',views.BookListGebericAPIView.as_view() ),
    path('books/BookDetailGebericAPIView/<int:pk>',views.BookDetailGebericAPIView.as_view() ),
    path('books/BookListMixinGebericAPIView',views.BookListMixinGebericAPIView.as_view() ),
    path('books/BookDetailMixinGebericAPIView/<int:pk>',views.BookDetailMixinGebericAPIView.as_view() ),
    path('books/third_view',views.BookListThirdView.as_view() ),
    path('third_view/<int:pk>',views.BookDetailThirdView.as_view() ),
    path('readonly_viewset/',views.BooksReadOnlyModelViewSet.as_view({'get':'list'}) ),
    path('boos_viewset/',views.BooksModelViewSet.as_view({'get':'list','post':'create'}) ),
    path('boos_viewset/<int:pk>',views.BooksModelViewSet.as_view({'get':'retrieve','put':'update','delete':'destroy'}) ),

]